using System.Windows.Forms;

namespace ctsu.Admin.Forms
{
	/// <summary>
	/// Summary description for FormAdminLookups.
	/// </summary>
	public class FormAdminLookups : System.Windows.Forms.Form
	{
		private System.Windows.Forms.ListBox lstLookup;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.ListView lvw;
		private System.Windows.Forms.ColumnHeader columnHeader1;
		private System.Windows.Forms.ColumnHeader columnHeader2;
		private System.Windows.Forms.ColumnHeader columnHeader3;
		private System.Windows.Forms.Label label2;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public FormAdminLookups()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
				if (components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose(disposing);
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.lstLookup = new System.Windows.Forms.ListBox();
			this.label1 = new System.Windows.Forms.Label();
			this.lvw = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
			this.label2 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// lstLookup
			// 
			this.lstLookup.Location = new System.Drawing.Point(16, 24);
			this.lstLookup.Name = "lstLookup";
			this.lstLookup.Size = new System.Drawing.Size(136, 212);
			this.lstLookup.TabIndex = 0;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(16, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(144, 16);
			this.label1.TabIndex = 1;
			this.label1.Text = "Select A Lookup Table";
			// 
			// lvw
			// 
			this.lvw.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																				  this.columnHeader1,
																				  this.columnHeader2,
																				  this.columnHeader3});
			this.lvw.GridLines = true;
			this.lvw.Location = new System.Drawing.Point(232, 24);
			this.lvw.Name = "lvw";
			this.lvw.Size = new System.Drawing.Size(368, 208);
			this.lvw.TabIndex = 2;
			this.lvw.View = System.Windows.Forms.View.Details;
			this.lvw.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lvw_MouseDown);
			// 
			// columnHeader1
			// 
			this.columnHeader1.Text = "Display";
			this.columnHeader1.Width = 123;
			// 
			// columnHeader2
			// 
			this.columnHeader2.Text = "Description";
			this.columnHeader2.Width = 200;
			// 
			// columnHeader3
			// 
			this.columnHeader3.Text = "Order";
			this.columnHeader3.Width = 41;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(232, 8);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(80, 16);
			this.label2.TabIndex = 3;
			this.label2.Text = "Lookup Items";
			// 
			// FormAdminLookups
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(616, 350);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.lvw);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.lstLookup);
			this.Name = "FormAdminLookups";
			this.Text = "FormAdminLookups";
			this.ResumeLayout(false);

		}
		#endregion

		private void lvw_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			ListViewItem lvi = lvw.GetItemAt(e.X, e.Y);
			if (lvi == null)
				return;

			lvw.DoDragDrop(lvi, DragDropEffects.Move);
		}
	}
}
